package com.wu.neihan.main;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.Date;
import java.util.List;
import java.util.UUID;

import org.apache.log4j.Logger;

import com.wu.neihan.model.Gather;
import com.wu.neihan.model.User;
import com.wu.neihan.service.GatherService;
import com.wu.neihan.service.QueueService;
import com.wu.util.ConMysql;
import com.wu.util.DateUtil;
import com.wu.util.HttpUtil;
import com.wu.util.JsonUtil;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

public class UserMain extends Thread {

	public static void main(String[] args) {
		// for(int i=1000;i<1001;i++){
		// caiUserInfo(String.valueOf(i));// 52393547001 6089394201
		// caiPostsInfo(String.valueOf(i), "");
		// // String
		// //
		// url="http://i.snssdk.com/neihan/video/playback/?video_id=d66ce810b1d14935bfb01157e211e5e4&quality=480p&line=0&is_gif=0.mp4";
		// // String body = HttpUtil.sendGetIO(url);
		// // System.out.println(body);
		// }
		// QueueService q=new QueueService();
		// q.start();
		// System.out.println("===========");
		// Logger logger = Logger.getLogger(UserMain.class);
		// logger.debug("开始");
		// logger.info(Class.class.getClass().getResource("/").getPath());
		// String body="";
		// String fileName="d:\\fm_log.log";
		//
		// File file = new File(fileName);
		// BufferedReader reader = null;
		// try {
		// System.out.println(fileName);
		// reader = new BufferedReader(new FileReader(file));
		// String tempString = null;
		// int line = 1;
		// // 一次读入一行，直到读入null为文件结束
		// while ((tempString = reader.readLine()) != null) {
		// // 显示行号
		// body=body+ tempString;
		// line++;
		// }
		// reader.close();
		// } catch (IOException e) {
		// e.printStackTrace();
		// } finally {
		// if (reader != null) {
		// try {
		// reader.close();
		// } catch (IOException e1) {
		// }
		// }
		// }
		// System.out.println(body);
		// }
		// HttpUtil.sendGet("http://is.snssdk.com/neihan/stream/mix/v1/");
		// ConMysql conMysql = new ConMysql();
		// List<Gather> gatherList = null;
		// try {
		// gatherList = conMysql.selectSql("select * from mto_gather where
		// type=2 and states=0 order by last_date limit 2");
		// } catch (Exception e) {
		// // TODO Auto-generated catch block
		// e.printStackTrace();
		// }
		// for(int i=0;i<gatherList.size();i++){
		// String id=gatherList.get(i).getStartId();
		// QueueService.putpostQueue(id);
		// System.out.println(id+"====");
		// try {
		// System.out.println(conMysql.insertSql("update mto_gather set states=1
		// where id='"+gatherList.get(i).getId()+"'"));
		// } catch (Exception e) {
		// // TODO Auto-generated catch block
		// e.printStackTrace();
		// }
		// }

		String ew = "176004484831760044098217600443052176003347141760033794017600337459176003347141760033794017600337459<pre><center><h3>下面是本地区的所有 剩余的AABB靓号！ 微博/微信公众号：会玩拯救不开心<h3>17600436644176003341711760033514817600336274<pre><center><h3>下面是本地区的所有 剩余的AABB靓号！ 微博/微信公众号：会玩拯救不开心<h3>17600474411176004484831760044098217600443052176004410411760044086217600440935176003394501760033497217600448795<pre><center><h3>下面是本地区的所有 剩余的AABB靓号！ 微博/微信公众号：会玩拯救不开心<h3>17600471144176003375401760033794017600336473176003375401760033794017600336473176004410411760044086217600440935176003394501760033497217600448795176003375401760033794017600336473<pre><center><h3>下面是本地区的所有 剩余的AABB靓号！ 微博/微信公众号：会玩拯救不开心<h3>1760043664417600337540176003379401760033647317600448534176004484921760044075117600440795176004485351760044308917600440253<pre><center><h3>下面是本地区的所有 剩余的AABB靓号！ 微博/微信公众号：会玩拯救不开心<h3>17600471144<pre><center><h3>下面是本地区的所有 剩余的AABB靓号！ 微博/微信公众号：会玩拯救不开心<h3>17600474411176003380421760033704317600337246<pre><center><h3>下面是本地区的所有 剩余的AABB靓号！ 微博/微信公众号：会玩拯救不开心<h3>17600478844176004403481760033475217600440389<pre><center><h3>下面是本地区的所有 剩余的AABB靓号！ 微博/微信公众号：会玩拯救不开心<h3>176004344221760042664417600479922176004401851760044847817600334204176004402931760044129517600443208<pre><center><h3>下面是本地区的所有 剩余的AABB靓号！ 微博/微信公众号：会玩拯救不开心<h3>1760047884417600336425176003349761760033407517600337465176003374851760033704717600338246<pre><center><h3>176004408651760044851017600044356176004484671760033647017600332148176003384021760033784217600336497<pre><center><h3>下面是本地区的所有 剩余的AABB靓号！ 微博/微信公众号：会玩拯救不开心<h3>17600419944176004588441760044086517600448510176000443561760044846717600440562176004487911760044308517600448516176004485081760044847917600441287<pre><center><h3>下面是本地区的所有 剩余的AABB靓号！ 微博/微信公众号：会玩拯救不开心<h3>17600419944176004588441760044847217600441096176004485021760044127817600440562176004487911760044308517600448516176004485081760044847917600441287下面是本地区的所有 剩余的AABB靓号！ 微博/微信公众号：会玩拯救不开心<h3>176004122441760047992217600426644176003341841760033574217600336284<pre><center><h3>下面是本地区的所有 剩余的AABB靓号！ 微博/微信公众号：会玩拯救不开心<h3>1760004440017600478844176003341841760033574217600336284<pre><center><h3>下面是本地区的所有 剩余的AABB靓号！ 微博/微信公众号：会玩拯救不开心<h3>1760004440017600478844176003374091760033861417600334964<pre><center><h3>下面是本地区的所有 剩余的AABB靓号！ 微博/微信公众号：会玩拯救不开心<h3>17600428844176003364371760033416217600336941176003387411760033478417600476644176003341841760033574217600336284<pre><center><h3>下面是本地区的所有 剩余的AABB靓号！ 微博/微信公众号：会玩拯救不开心<h3>17600464422176003341841760033574217600336284<pre><center><h3>下面是本地区的所有 剩余的AABB靓号！ 微博/微信公众号：会玩拯救不开心<h3>1760004440017600478844176004401641760044128517600448491176004410431760044887117600440281176004484571760044847117600441274176004401831760044126517600440684<pre><center><h3>下面是本地区的所有 剩余的AABB靓号！ 微博/微信公众号：会玩拯救不开心<h3>1760042114417600419944176004577441760044105717600440847176003347401760044087917600440384176003348371760044305417600440856<pre><center><h3>下面是本地区的所有 剩余的AABB靓号！ 微博/微信公众号：会玩拯救不开心<h3>17600414422176004544771760047441117600419944<pre><center><h3>下面是本地区的所有 剩余的AABB靓号！ 微博/微信公众号：会玩拯救不开心<h3>176004388441760046224417600471144176004744117600471155<pre><center><h3>下面是本地区的所有 剩余的AABB靓号！ 微博/微信公众号：会玩拯救不开心<h3>17600438844176004622441760047114417600474411176004711551760033435717600336294176003375241760033614917600337415<pre>17600448497176004484901760044127317600334296176004409431760033549117600434422176004755331760044849517600448498176004460521760044847317600334725176004484701760044129017600440859176004485151760044109817600446051176004485011760044073217600448459176004412501760044029417600448799<pre><center><h3>下面是本地区的所有 剩余的AABB靓号！ 微博/微信公众号：会玩拯救不开心<h3>1760047115517600467733176004460491760044107417600332471176004405611760033960417600448506176004484731760044067917600441263<pre><center><h3>下面是本地区的所有 剩余的AABB靓号！ 微博/微信公众号：会玩拯救不开心<h3>1760047553317600439944176004412961760044036517600440697176004484631760044037417600440949176004484701760044089317600441245<pre><center><h3>下面是本地区的所有 剩余的AABB靓号！ 微博/微信公众号：会玩拯救不开心<h3>17600471155176004677331760044096817600441091176004484901760044095717600441273176004484761760044095317600440896176004430861760044124517600443074176004410491760033841717600448514<pre><center><h3>下面是本地区的所有 剩余的AABB靓号！ 微博/微信公众号：会玩拯救不开心<h3>176004744221760004440017600448497176004484901760044127317600334296176004409431760033549117600434422176004755331760044849517600448498176004460521760044847317600334725176004484701760044129017600440859176004485151760044109817600446051176004485011760044073217600448459176004412501760044029417600448799<pre><center><h3>下面是本地区的所有 剩余的AABB靓号！ 微博/微信公众号：会玩拯救不开心<h3>1760047115517600467733176004409681760044109117600448490176004409571760044127317600448476176004409531760044089617600443086176004412451760044307417600441049176003384171760044851417600434422176004755331760044129617600440365176004406971760044846317600440374176004409491760044847017600440893176004412451760044096817600441091176004484901760044095717600441273176004484761760044095317600440896176004430861760044124517600443074176004410491760033841717600448514<pre><center><h3>下面是本地区的所有 剩余的AABB靓号！ 微博/微信公众号：会玩拯救不开心<h3>1760047442217600044400176004484971760044849017600441273176003342961760044094317600335491<pre><center><h3>下面是本地区的所有 剩余的AABB靓号！ 微博/微信公众号：会玩拯救不开心<h3>17600475533176004399441760044096817600441091176004484901760044095717600441273176004484761760044095317600440896176004430861760044124517600443074176004410491760033841717600448514176004484951760044849817600446052176004484731760033472517600448470176004412901760044085917600448515176004410981760044605117600448501176004407321760044845917600441250176004402941760044879917600448515<pre><center><h3>下面是本地区的所有 剩余的AABB靓号！ 微博/微信公众号：会玩拯救不开心<h3>1760047442217600044400176004405491760044850317600440641176004405321760044096217600440651176004412901760044847317600440753176004410981760044103417600443204<center><h3>下面是本地区的所有 剩余的AABB靓号！ 微博/微信公众号：会玩拯救不开心<h3>1760043884417600462244176004711441760047441117600471155176003346721760044064217600443048176004407831760044049217600339742176004484961760044034217600414422176004211441760043447717600474422176004366441760033548717600336045176003384251760033714817600334739176003347811760046774417600414422176004644221760041224417600428844";
		while (true) {
			String body = HttpUtil.sendGet("http://wk.iwzh.cn/V/lianghao.php?shengfenid=11&shiquid=110&id=4");
			String fon[] = body.split("<br/>");
			for (int i = 0; i < fon.length; i++) {
				if (ew.indexOf(fon[i]) < 0) {
					if (fon[i].indexOf("0033") > 0 || fon[i].indexOf("00044") > 0|| fon[i].indexOf("0022") > 0 || fon[i].indexOf("444") > 0|| fon[i].indexOf("000") > 0
							|| fon[i].indexOf("333") > 0) {
						System.out.println(fon[i]);
					}
				}
			}
			body = HttpUtil.sendGet("http://wk.iwzh.cn/V/lianghao.php?shengfenid=11&shiquid=110&lh=AABB&id=4");
			String font[] = body.split("<br/>");
			for (int i = 0; i < font.length; i++) {
				if (ew.indexOf(font[i]) < 0) {
					System.out.println(font[i]);
				}
			}

			try {
				sleep(3000 * 1);
			} catch (InterruptedException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
	}

}
